﻿using System;
using HAVNet.Intros.AST;


namespace HAVNet.CoreTesting
{
    public delegate void ClassMethodFound (ASTMemberDeclMethod method);

    public class WalkerClassesMethods
    {
        public static void get (ASTTypeDeclClass @class, ClassMethodFound f)
        {
            foreach (ASTMemberDecl decl in @class.members)
                if (decl is ASTMemberDeclMethod)
                    f((ASTMemberDeclMethod)decl);
        }
    }
}
